import { Pipe, PipeTransform } from '@angular/core';
// im聊天-特殊字符转换
@Pipe({
    name: 'nameStrFilter',
})
export class NameStrfilter implements PipeTransform {
    transform(value: any, args?: any): any {
        let a;
        // 新增换行符处理
        a = value.substring(0, 2); // .replace(/\n/g, '<br />');
        return a;
    }
}
